+Sun Sep 5 17:14:16 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkmain.c:
+ * gdk/gdk.c:
+ * gdk/x11/gdkmain-x11.c:
+ * gdk/win32/gdkmain-win32.c: Add descriptions for the
+ commandline arguments. The actual descriptions are mostly
+ taken from libbonoboui, so translators should be able to
+ copy existing translations from there.
+
2004-09-05 Anders Carlsson <andersca@gnome.org>
* gdk/gdk.symbols:
+Sun Sep 5 17:14:16 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkmain.c:
+ * gdk/gdk.c:
+ * gdk/x11/gdkmain-x11.c:
+ * gdk/win32/gdkmain-win32.c: Add descriptions for the
+ commandline arguments. The actual descriptions are mostly
+ taken from libbonoboui, so translators should be able to
+ copy existing translations from there.
+
2004-09-05 Anders Carlsson <andersca@gnome.org>
* gdk/gdk.symbols:
+Sun Sep 5 17:14:16 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkmain.c:
+ * gdk/gdk.c:
+ * gdk/x11/gdkmain-x11.c:
+ * gdk/win32/gdkmain-win32.c: Add descriptions for the
+ commandline arguments. The actual descriptions are mostly
+ taken from libbonoboui, so translators should be able to
+ copy existing translations from there.
+
2004-09-05 Anders Carlsson <andersca@gnome.org>
* gdk/gdk.symbols:
+Sun Sep 5 17:14:16 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkmain.c:
+ * gdk/gdk.c:
+ * gdk/x11/gdkmain-x11.c:
+ * gdk/win32/gdkmain-win32.c: Add descriptions for the
+ commandline arguments. The actual descriptions are mostly
+ taken from libbonoboui, so translators should be able to
+ copy existing translations from there.
+
2004-09-05 Anders Carlsson <andersca@gnome.org>
* gdk/gdk.symbols:
#include "gdkalias.h"
#include "gdk.h"
#include "gdkinternals.h"
+#include "gdkintl.h"
#ifndef HAVE_XCONVERTCASE
#include "gdkkeysyms.h"
}
static GOptionEntry gdk_args[] = {
- { "class", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_class_cb, NULL, NULL },
- { "name", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_name_cb, NULL, NULL },
- { "display", 0, G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, &_gdk_display_name, NULL, NULL },
- { "screen", 0, 0, G_OPTION_ARG_INT, &_gdk_screen_number, NULL, NULL },
+ { "class", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_class_cb,
+ /* Description of --class=CLASS in --help output */ N_("Program class as used by the window manager"),
+ /* Placeholder in --class=CLASS in --help output */ N_("CLASS") },
+ { "name", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_name_cb,
+ /* Description of --name=NAME in --help output */ N_("Program name as used by the window manager"),
+ /* Placeholder in --name=NAME in --help output */ N_("NAME") },
+ { "display", 0, G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, &_gdk_display_name,
+ /* Description of --display=DISPLAY in --help output */ N_("X display to use"),
+ /* Placeholder in --display=DISPLAY in --help output */ N_("DISPLAY") },
+ { "screen", 0, 0, G_OPTION_ARG_INT, &_gdk_screen_number,
+ /* Description of --screen=SCREEN in --help output */ N_("X screen to use"),
+ /* Placeholder in --screen=SCREEN in --help output */ N_("SCREEN") },
#ifdef G_ENABLE_DEBUG
- { "gdk-debug", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_debug_cb, NULL, NULL },
- { "gdk-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_no_debug_cb, NULL, NULL },
-#endif /* G_ENABLE_DEBUG */
+ { "gdk-debug", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_debug_cb,
+ /* Description of --gdk-debug=FLAGS in --help output */ N_("Gdk debugging flags to set"),
+ /* Placeholder in --gdk-debug=FLAGS in --help output */ N_("FLAGS") },
+ { "gdk-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_no_debug_cb,
+ /* Description of --gdk-no-debug=FLAGS in --help output */ N_("Gdk debugging flags to unset"),
+ /* Placeholder in --gdk-no-debug=FLAGS in --help output */ N_("FLAGS") },
+#endif
{ NULL }
};
#include "gdkregion-generic.h"
#include "gdkkeysyms.h"
#include "gdkinternals.h"
+#include "gdkintl.h"
#include "gdkprivate-win32.h"
#include "gdkinput-win32.h"
static gboolean gdk_synchronize = FALSE;
GOptionEntry _gdk_windowing_args[] = {
- { "sync", 0, 0, G_OPTION_ARG_NONE, &_gdk_synchronize, NULL, NULL },
- { "no-wintab", 0, 0, G_OPTION_ARG_NONE, &_gdk_input_ignore_wintab, NULL, NULL },
- { "ignore-wintab", 0, 0, G_OPTION_ARG_NONE, &_gdk_input_ignore_wintab, NULL, NULL },
+ { "sync", 0, 0, G_OPTION_ARG_NONE, &_gdk_synchronize,
+ /* Description of --sync in --help output */ N_("Don't batch GDI requests"), NULL },
+ { "no-wintab", 0, 0, G_OPTION_ARG_NONE, &_gdk_input_ignore_wintab,
+ /* Description of --no-wintab in --help output */ N_("Don't use the Wintab API for tablet support [default]"), NULL },
+ { "ignore-wintab", 0, 0, G_OPTION_ARG_NONE, &_gdk_input_ignore_wintab,
+ /* Description of --ignore-wintab in --help output */ N_("Same as --no-wintab"), NULL },
#if 0
{ "use-wintab", 0, 0, G_OPTION_ARG_NONE, &_gdk_input_ignore_wintab, NULL, NULL },
#endif
- { "max-colors", 0, 0, G_OPTION_ARG_INT, &_gdk_max_colors, NULL, NULL },
+ { "max-colors", 0, 0, G_OPTION_ARG_INT, &_gdk_max_colors,
+ /* Description of --max-colors=COLORS in --help output */ N_("Size of the palette in 8 bit mode"),
+ /* Placeholder in --max-colors=COLORS in --help output */ N_("COLORS") },
{ NULL }
};
#include "gdkx.h"
#include "gdkdisplay-x11.h"
#include "gdkinternals.h"
+#include "gdkintl.h"
#include "gdkregion-generic.h"
#include "gdkinputprivate.h"
static GSList *gdk_error_trap_free_list = NULL; /* Free list */
GOptionEntry _gdk_windowing_args[] = {
- { "sync", 0, 0, G_OPTION_ARG_NONE, &_gdk_synchronize, NULL, NULL },
+ { "sync", 0, 0, G_OPTION_ARG_NONE, &_gdk_synchronize,
+ /* Description of --sync in --help output */ N_("Make X calls synchronous"), NULL },
{ NULL }
};
}
static GOptionEntry gtk_args[] = {
- { "gtk-module", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_module_cb, NULL, NULL },
- { "g-fatal-warnings", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_warnings_cb, NULL, NULL },
+ { "gtk-module", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_module_cb,
+ /* Description of --gtk-module=MODULES in --help output */ N_("Load additional GTK+ modules"),
+ /* Placeholder in --gtk-module=MODULES in --help output */ N_("MODULES") },
+ { "g-fatal-warnings", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_warnings_cb,
+ /* Description of --g-fatal-warnings in --help output */ N_("Make all warnings fatal"), NULL },
#ifdef G_ENABLE_DEBUG
- { "gtk-debug", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_debug_cb, NULL, NULL },
- { "gtk-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_no_debug_cb, NULL, NULL },
-#endif /* G_ENABLE_DEBUG */
+ { "gtk-debug", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_debug_cb,
+ /* Description of --gtk-debug=FLAGS in --help output */ N_("GTK+ debugging flags to set"),
+ /* Placeholder in --gtk-debug=FLAGS in --help output */ N_("FLAGS") },
+ { "gtk-no-debug", 0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_no_debug_cb,
+ /* Description of --gtk-no-debug=FLAGS in --help output */ N_("GTK+ debugging flags to unset"),
+ /* Placeholder in --gtk-no-debug=FLAGS in --help output */ N_("FLAGS") },
+#endif
{ NULL }
};
gdk_add_option_entries_libgtk_only (group);
g_option_group_add_entries (group, gtk_args);
+ g_option_group_set_translation_domain (group, GETTEXT_PACKAGE);
return group;
}
g_option_context_set_ignore_unknown_options (option_context, TRUE);
g_option_context_set_help_enabled (option_context, FALSE);
- g_option_context_add_main_entries (option_context, gtk_args, NULL);
+ g_option_context_add_main_entries (option_context, gtk_args, GETTEXT_PACKAGE);
g_option_context_parse (option_context, argc, argv, NULL);
g_option_context_free (option_context);